package com.wanhe.base.util;

import android.support.annotation.Nullable;
import android.support.v4.BuildConfig;
import android.util.Log;


/**
 * Created by
 */
public class Logger {

    public static  final String TAG = "wanhe";
    public static void e( String logMessage) {
        if (!BuildConfig.DEBUG)
            return;

        Log.e(TAG, logMessage);
    }
    public static void e(String logMessageTag, String logMessage) {
        if (!BuildConfig.DEBUG)
        return;

        Log.e(logMessageTag, logMessage);
    }


    public static void e(String logMessageTag, String logMessage, Throwable throwableException) {
        if (!BuildConfig.DEBUG)
            return;
        Log.e(logMessageTag, logMessage, throwableException);
    }

    public static void v(String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.v(TAG, logMessage);
    }

    public static void v(String logMessageTag, String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.v(logMessageTag, logMessage);
    }


    public static void v(String logMessageTag, String logMessage, Throwable throwableException) {

        if (!BuildConfig.DEBUG)
            return;

        Log.v(logMessageTag, logMessage, throwableException);

    }

    public static void d( @Nullable String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.d(TAG, logMessage);

    }

    public static void d(String logMessageTag, @Nullable String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.d(logMessageTag, logMessage);

    }
    public static void i( @Nullable String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.i(TAG, logMessage);

    }

    public static void i(String logMessageTag, @Nullable String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.i(logMessageTag, logMessage);

    }

    public static void w(String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.v(TAG, logMessage);

    }

    public static void w(String logMessageTag, String logMessage) {

        if (!BuildConfig.DEBUG)
            return;

        Log.v(logMessageTag, logMessage);

    }


}

